<template>
	
	<view class="page ">
		<globalheader :title="title">
			
		</globalheader>
		<u-parse :content="node"></u-parse>
		<!-- <rich-text :nodes="node">
			
		</rich-text> -->
	</view>	
</template>

<script>
	import LC from '@/LC'
	export default {
		data() {
			return {
				id:'',
				node:'',
				title:''
			}
		},
		onLoad({loacl,title,id}) {
			this.title=title
			this.id=id
			if(loacl){
				this.node=uni.getStorageSync('loaclText')
			}else{
				this.richText()
			}
		},
		methods: {
			async richText(){
				const res = await LC.$api.app.page(this.id)
				if (res.code == 1) {
				
						this.node=res.data.content
				}
			}
		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}
		
	.page{
		padding: 30rpx;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
